import request from '@/utils/request'

// 查询功能码列表
export function listFunctionQrcode(query) {
  return request({
    url: '/system_setting/functionQrcode/list',
    method: 'get',
    params: query
  })
}

// 查询功能码详细
export function getFunctionQrcode(qrId) {
  return request({
    url: `/system_setting/functionQrcode/${qrId}`,
    method: 'get'
  })
}

// 新增功能码
export function addFunctionQrcode(data) {
  return request({
    url: '/system_setting/functionQrcode',
    method: 'post',
    data: data
  })
}

// 修改功能码
export function updateFunctionQrcode(data) {
  return request({
    url: '/system_setting/functionQrcode',
    method: 'put',
    data: data
  })
}

// 删除功能码
export function delFunctionQrcode(qrId) {
  return request({
    url: `/system_setting/functionQrcode/${qrId}`,
    method: 'delete'
  })
}
